home *** CD-ROM | disk | FTP | other *** search
- #include "msconst.pas"
- #define WSABASEERR 10000+MSWSSHIFT
-
- #define WSAEINTR (WSABASEERR+4)
- #define WSAEBADF (WSABASEERR+9)
- #define WSAEACCES (WSABASEERR+13)
- #define WSAEFAULT (WSABASEERR+14)
- #define WSAEINVAL (WSABASEERR+22)
- #define WSAEMFILE (WSABASEERR+24)
-
-
- // Windows Sockets definitions of regular Berkeley error
- // constants
-
- #define WSAEWOULDBLOCK (WSABASEERR+35)
- #define WSAEINPROGRESS (WSABASEERR+36)
- #define WSAEALREADY (WSABASEERR+37)
- #define WSAENOTSOCK (WSABASEERR+38)
- #define WSAEDESTADDRREQ (WSABASEERR+39)
- #define WSAEMSGSIZE (WSABASEERR+40)
- #define WSAEPROTOTYPE (WSABASEERR+41)
- #define WSAENOPROTOOPT (WSABASEERR+42)
- #define WSAEPROTONOSUPPORT (WSABASEERR+43)
- #define WSAESOCKTNOSUPPORT (WSABASEERR+44)
- #define WSAEOPNOTSUPP (WSABASEERR+45)
- #define WSAEPFNOSUPPORT (WSABASEERR+46)
- #define WSAEAFNOSUPPORT (WSABASEERR+47)
- #define WSAEADDRINUSE (WSABASEERR+48)
- #define WSAEADDRNOTAVAIL (WSABASEERR+49)
- #define WSAENETDOWN (WSABASEERR+50)
- #define WSAENETUNREACH (WSABASEERR+51)
- #define WSAENETRESET (WSABASEERR+52)
- #define WSAECONNABORTED (WSABASEERR+53)
- #define WSAECONNRESET (WSABASEERR+54)
- #define WSAENOBUFS (WSABASEERR+55)
- #define WSAEISCONN (WSABASEERR+56)
- #define WSAENOTCONN (WSABASEERR+57)
- #define WSAESHUTDOWN (WSABASEERR+58)
- #define WSAETOOMANYREFS (WSABASEERR+59)
- #define WSAETIMEDOUT (WSABASEERR+60)
- #define WSAECONNREFUSED (WSABASEERR+61)
- #define WSAELOOP (WSABASEERR+62)
- #define WSAENAMETOOLONG (WSABASEERR+63)
- #define WSAEHOSTDOWN (WSABASEERR+64)
- #define WSAEHOSTUNREACH (WSABASEERR+65)
- #define WSAENOTEMPTY (WSABASEERR+66)
- #define WSAEPROCLIM (WSABASEERR+67)
- #define WSAEUSERS (WSABASEERR+68)
- #define WSAEDQUOT (WSABASEERR+69)
- #define WSAESTALE (WSABASEERR+70)
- #define WSAEREMOTE (WSABASEERR+71)
-
-
- // Extended Windows Sockets error constant definitions
-
- #define WSASYSNOTREADY (WSABASEERR+91)
- #define WSAVERNOTSUPPORTED (WSABASEERR+92)
- #define WSANOTINITIALISED (WSABASEERR+93)
- #define WSAEDISCON (WSABASEERR+94)
-
- //
- // Error return codes from gethostbyname() and
- // gethostbyaddr()
- // (when using the resolver). Note that these errors are
- // retrieved via WSAGetLastError() and must therefore follow
- // the rules for avoiding clashes with error numbers from
- // specific implementations or language run-time systems.
- // For this reason the codes are based at WSABASEERR+1001.
- // Note also that [WSA]NO_ADDRESS is defined only for
- // compatibility purposes.
- //
-
- #define h_errno WSAGetLastError()
-
- // Authoritative Answer: Host not found
- #define WSAHOST_NOT_FOUND (WSABASEERR+1001)
- #define HOST_NOT_FOUND WSAHOST_NOT_FOUND
-
- // Non-Authoritative: Host not found, or SERVERFAIL
- #define WSATRY_AGAIN (WSABASEERR+1002)
- #define TRY_AGAIN WSATRY_AGAIN
-
- // Non-recoverable errors, FORMERR, REFUSED, NOTIMP
- #define WSANO_RECOVERY (WSABASEERR+1003)
- #define NO_RECOVERY WSANO_RECOVERY
-
- // Valid name, no data record of requested type
- #define WSANO_DATA (WSABASEERR+1004)
- #define NO_DATA WSANO_DATA
-
- // no address, look for MX record
- #define WSANO_ADDRESS WSANO_DATA
- #define NO_ADDRESS WSANO_ADDRESS
-